package com.jin.spirng_boot_learn.constant;

import lombok.Data;

@Data

public class Response {

    private String msg;
    private Integer status;
    private Object content;

    public Response(Object content) {
        this(content, 200, "success");
    }

    public Response(Object content, Integer status, String msg) {
        this.status = status;
        this.msg = msg;
        this.content = content;
    }

    public static  Response ok = new Response("", 200, "success");
    public static Response error = new Response("", 500, "error");

}
